package com.itmuch.dubbo.test;

import org.springframework.beans.factory.annotation.Autowired;

import com.alibaba.dubbo.config.annotation.Service;
import com.itmuch.dubbo.test.UserRepository;
import com.itmuch.dubbo.test.UserService;

@Service(version = "1.0.0")
public class UserServerImpl implements UserService {
  @Autowired
  private UserRepository userRepository;

  @Override
  public User findById(Long id) {
    return this.userRepository.findOne(id);
  }

}
